< previous page page_385 next page >

Page 385
The MDI form is added to the Forms folder in the Project Explorer window. However, if you look closely, you might notice that the MDI form's icon in the Project window is different from the icon used for a standard form. By examining these icons, you can easily identify the type of each form. Figure 17.4 illustrates the difference between normal and MDI form icons.
0385-01.jpg
Figure 17.4
Icons show the form type in the Project window.
After you add the form to your project, you should specify a descriptive name for the form and set any of the other properties that you need. Most of the properties of the MDI form are the same ones that you set to control the appearance of a standard form.
sarrow.gifSee "Parts of a Form," p. 40
Two properties are unique to the MDI form and deserve special note: the AutoShowChildren property and the ScrollBars property. The AutoShowChildren property determines whether child forms are shown automatically as they are loaded. If the AutoShowChildren property is set to True (the default value), then child forms are shown as soon as they are loaded. Therefore, the Load statement and the Show method have the same effect on the form.
The ScrollBars property determines whether the MDI form shows scrollbars when necessary. When this property is set to True (the default value), scrollbars are shown on the MDI form if one or more of the child forms extends beyond the boundary of the MDI form, as shown in Figure 17.5. If the property is set to False, scrollbars are not shown under any conditions.
0385-02.jpg
Figure 17.5
Scrollbar let you view portions of child froms
that extend beyond the boundary of the parent form.
One other property of note is the Picture property. Although the MDI form does not support the Print method and graphics methods like a standard form does, you can still include a picture as the background of the form.

 
< previous page page_385 next page >